from django.contrib import admin
from .models import FoodType,Food,Abs
# Register your models here.
@admin.register(Food)
class FoodTypeAdmin(admin.ModelAdmin):
    list_display = ("title","price","food_type","food_img","info")
    list_display_links = ("title","food_type")
    list_filter = ("price","food_type")
    search_fields = ("title","type_food")


@admin.register(FoodType)
class FoodTypeAdmin(admin.ModelAdmin):
    list_display = ("id","title")
    list_display_links = ("title",)



@admin.register(Abs)
class AbsAdmin(admin.ModelAdmin):
    list_display = ("id","title","url")
